package com.mark.web.stars.service;

import com.github.pagehelper.PageInfo;
import com.mark.common.ServerResponse;
import com.mark.web.common.entity.SelectVo;
import com.mark.web.stars.entity.po.Fragment;
import com.mark.web.stars.entity.vo.FragmentVo;

import java.util.List;
import java.util.Map;

/**
 * @Description: 碎片service层接口定义
 * @Author: Mark
 * @CreateDate: 2019/6/2 17:51
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
public interface IFragmentService {

    /**
     * 添加碎片
     * @param fragment ：
     * @return  ：
     */
    ServerResponse<String> add(Fragment fragment);

    ServerResponse<PageInfo<FragmentVo>> getFragmentList(Map<String, Object> requestMap);

    List<Map<String, Object>> getTypeInfo();

    List<SelectVo<String, Integer>> getTypeSelect();

}
